﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _018传值_输出_引用_数组_具名_可选参数_1_
{
    internal class Program
    {
        static void Main(string[] args)
        {

            int x = 100;
            Student stu = new Student();
            stu.AddOne(x);
            Console.WriteLine(x);
        }


    }

    class Student
    {
        //x是传值参数AAADSA
        public void AddOne(int x)
        {
            x = x + 1;
            Console.WriteLine(x);
        }
    }
}
